package mytest;

/**
 * Created by thinkpad on 2015/1/1.
 */
public class AliasBase {
    public AliasBaseBase aliasBaseBase;
    int i;

//    public  AliasBase(AliasBaseBase aliasBaseBase) {
//        this.aliasBaseBase = new AliasBaseBase(aliasBaseBase.getI());
//        this.i = aliasBaseBase.getI();
//    }

    public AliasBase(AliasBaseBase aliasBaseBase) {
        this.aliasBaseBase = aliasBaseBase;
        this.i = aliasBaseBase.getI();
    }

    public int getI() {
        return i;
    }

    public AliasBase(int i) {
        this.i = i;
    }

    public AliasBase getAliasBase() {
        return this;
    }

    public AliasBaseBase getAliasBaseBase() {
        return aliasBaseBase;
    }

    public void addI() {
        this.i++;
    }
}
